public class E {
  public static void main(String args[]) {
    B b=new B();
    System.out.println(b.f(10.0,8.0));
    System.out.println(b.g(3));
    A a=new B();
    System.out.println(a.f(10.0,9.0));
    System.out.println(a.g(3));
  }
}
